package com.lenovo.order_service.enums;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

@Getter
public enum ResultCode {
    ERROR(-1, "系统处理出现异常"),
    SUCCESS(0, "success"),
    REQUEST_PARAM_ERROR(90000011, "请求参数错误"),
    DATABASE_ERROR(90000012, "数据库异常"),
    INVALID_ORDER_ERROR(90000013, "订单信息无效");


    private Integer code;
    private String name;

    ResultCode(Integer code, String name) {
        this.code = code;
        this.name = name;
    }
}
